<template>
	<view>
		<view class="content">
			<view class="container">
				<view class="logo-img">
					<image src="../../static/logo.png" mode=""></image>
				</view>
			</view>
			<view class="button_box">
				<button type="button" color="d9d9d9" @click="goPage('s')">手机号一键登录</button>
			</view>
			<view class="button_box">
				<button type="button" color="d9d9d9" @click="goPage('d')">短信验证码登录</button>
			</view>
			<view class="flex check_box">
				<u-checkbox-group v-model="check" placement="column" @change="checkboxChange">
					<u-checkbox name="确认" label="我已阅读用户协议..." shape="circle" labelColor="#000" icon-size="10">
					</u-checkbox>
				</u-checkbox-group>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				check: []
			}
		},
		methods: {
			checkboxChange(n) {
				this.check = n.length ? true : false
				// console.log('change', this.check,n);
			},
			goPage(value) {
				if (value == 's') {
					uni.navigateTo({
						url: "/subpackPage/phoneLogin/phoneLogin"
					})
				} else {
					uni.navigateTo({
						url: "/subpackPage/msgLogin/msgLogin"
					})

				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		position: relative;

		.container {
			display: flex;
			justify-content: center;
			align-items: center;
			margin-top: 200rpx;

			.logo-img {
				width: 300rpx;
				height: 300rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}
		}

		.button_box {
			width: 75%;
			margin: 40rpx auto;

			button {
				background-color: #d9d9d9;
				border-radius: 50rpx;
				width: 100%;
				height: 100rpx;
				line-height: 100rpx;
				font-size: 30rpx;
			}

			.text {
				font-size: 27rpx;
			}
		}

		.check_box {
			display: flex;
			justify-content: center;
			align-items: center;
		}
	}

	.mt-30 {
		margin-top: 40rpx;
	}
</style>